<?php
// application/lib/SessionSaveHandler.php
/**
 * Lib_SessionSaveHandler
 *
 * demo-zf application
 *
 * @author Adam Pilacki <adam.pilacki@gmail.com>
 */
final class Lib_SessionSaveHandler
    extends Zend_Session_SaveHandler_DbTable
{
    /**
     * Set adapter\connection
     */
    protected function _setupDatabaseAdapter()
    {
        $this->_db = AdamP_Model_Connection::getConnection(Zend_Registry::get('config')->sessionSaveHandlerConnectionName);
    }
}